
#include <iostream>
#include "Context.h"
#include "GeneralUser.h"
#include "VIPUser.h"
#include "PlatinumUser.h"

int main(int argc, char* argv[])
{
  DiscountStrategy* strategy;
  // 根据需要选用不同的折扣方式
  strategy = new PlatinumUser();
  Context context(strategy);
  double price = context.PriceAfterDiscount(100.0);
  std::cout << "折扣后的价格：" << price << std::endl;
  return 0;
}